<?
/**
 * Event database object
 */
class EventDbo extends HistoryTimelineDbo {

/**
 * constructor - define object property -> table mappings
 */
public function __construct() {
	// parent
	parent::__construct();
	// table name
	$this->setDatabaseTable('event_ids');
	// object properties
	$this->propertyAdd('CategoryId');
	$this->propertyAdd('EventDate');
	$this->propertyAdd('Enabled');
	$this->propertyAdd('EventText');
	$this->propertyAdd('Id');
	$this->propertyAdd('SourceId');
	// Set id property
	$this->setIdProperty('Id');
	// Friendly Descriptions
	$this->setPropertyDescription('CategoryId', 'Category');
	$this->setPropertyDescription('EventDate', 'Event Date');
	$this->setPropertyDescription('EventText', 'Event');
	$this->setPropertyDescription('SourceId', 'Source');
	// Date properties
	$this->setPropertyIsDate('Date');
	// Numeric properties
	$this->setPropertyIsNumeric('CategoryId');
	$this->setPropertyIsNumeric('Enabled');
	$this->setPropertyIsNumeric('Id');
	$this->setPropertyIsNumeric('SourceId');
	// Set property lengths
	$this->setPropertyMaxLength('CategoryId', 10);
	$this->setPropertyMaxLength('EventDate',  10);
	$this->setPropertyMaxLength('Enabled',    1);
	$this->setPropertyMaxLength('EventText',  16777215);
	$this->setPropertyMaxLength('Id',         10);
	$this->setPropertyMaxLength('SourceId',   10);
	}
}
?>
